<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="200px">
        <CommonAside />
      </el-aside>
      <el-container>
        <el-header>
          <CommonHeader />
        </el-header>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { defineComponent } from "vue";
import CommonHeader from "../components/CommonHeader.vue";
import CommonAside from "../components/CommonAside.vue";
export default defineComponent({
  components: {
    CommonHeader,
    CommonAside,
  },
});
</script>

<style lang='less' scoped>
.aside {
  height: 100%;
  background-color: rgb(15, 15, 15);
}
.common-layout {
  height: 100vh;
  overflow: hidden;
  & > .el-container {
    height: 100%;
    & > .el-aside {
      height: 100%;
      background-color: red;
    }
  }
}
.el-header {
  padding: 0;
}
.el-menu {
  padding: 0;
}
</style>